﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Common
{
    /// <summary>
    /// 
    /// </summary>
    public class TextUtil
    {
        /// <summary>
        /// small word ratio
        /// word count ratio
        /// non-alphanumeric (punctuation, symbol)
        /// </summary>
        /// <param name="ocredText"></param>
        /// <returns></returns>
        public static double GetOCRQuality(string ocredText)
        {
            return 0;
        }

        /// <summary>
        /// vector distance (cosine)
        /// </summary>
        /// <param name="text1"></param>
        /// <param name="text2"></param>
        /// <returns></returns>
        public static double GetFuzzyTextMatchScore(string text1, string text2)
        {
            return 0;
        }

        /// <summary>
        /// longest common subsequence 
        /// </summary>
        /// <param name="text1"></param>
        /// <param name="text2"></param>
        /// <param name="scanCharacterLength"></param>
        /// <param name="threshold"></param>
        /// <returns></returns>
        public static bool HaveSimilarStart(string text1, string text2, int scanCharacterLength, double threshold)
        {
            return false;
        }

        /// <summary>
        /// longest common subsequence 
        /// </summary>
        /// <param name="text1"></param>
        /// <param name="text2"></param>
        /// <param name="scanCharacterLength"></param>
        /// <param name="threshold"></param>
        /// <returns></returns>
        public static bool HaveSimilarEnd(string text1, string text2, int scanCharacterLength, double threshold)
        {
            return false;
        }
    }
}
